#ifndef BAR_H
#define BAR_H

#include "cv.h"
#include "ball.h"

class bar
{
    public:
    bar();
    void draw(IplImage *img);
    void checkCollision(ball &B);   
	int lives;
	int y,x,height,width;

    private:
    static bool barRegion(int barx, int bary, int barwidth, int barheight, int ballx, int bally, int ballwidth, int ballheight);
    bool leftPlayer;
    CvFont font;

};

#endif